.class public Lcom/instagram/android/creation/c;
.super Lcom/instagram/e/b/b;
.source "NearbyVenuesFragment.java"


# instance fields
.field private Z:Ljava/util/Observer;

.field private final a:Ljava/lang/String;

.field private aa:Landroid/widget/AdapterView$OnItemClickListener;

.field private b:Ljava/lang/String;

.field private c:Lcom/instagram/android/a/f;

.field private d:Lcom/instagram/ui/widget/refresh/RefreshButton;

.field private e:Landroid/widget/ListView;

.field private f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

.field private g:Ljava/lang/String;

.field private h:Lcom/facebook/b/a/j;

.field private i:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 45
    const-string v0, "NearbyVenuesFragment"

    iput-object v0, p0, Lcom/instagram/android/creation/c;->a:Ljava/lang/String;

    .line 69
    new-instance v0, Lcom/instagram/android/creation/d;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/d;-><init>(Lcom/instagram/android/creation/c;)V

    iput-object v0, p0, Lcom/instagram/android/creation/c;->Z:Ljava/util/Observer;

    .line 104
    new-instance v0, Lcom/instagram/android/creation/e;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/e;-><init>(Lcom/instagram/android/creation/c;)V

    iput-object v0, p0, Lcom/instagram/android/creation/c;->aa:Landroid/widget/AdapterView$OnItemClickListener;

    return-void
.end method

.method private X()Landroid/location/Location;
    .locals 2

    .prologue
    .line 337
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "INTENT_EXTRA_PHOTO_LOCATION"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "INTENT_EXTRA_PHOTO_LOCATION"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/location/Location;

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/InstagramApplication;

    invoke-virtual {v0}, Lcom/instagram/android/InstagramApplication;->a()Landroid/location/Location;

    move-result-object v0

    goto :goto_0
.end method

.method private Y()Landroid/location/Location;
    .locals 2

    .prologue
    .line 343
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "INTENT_EXTRA_PHOTO_LOCATION"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "INTENT_EXTRA_PHOTO_LOCATION"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/location/Location;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private Z()V
    .locals 2

    .prologue
    .line 382
    iget-object v0, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    if-eqz v0, :cond_0

    .line 383
    iget-object v0, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/ui/widget/refresh/RefreshButton;->setDisplayedChild(I)V

    .line 385
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/InstagramApplication;

    iget-object v1, p0, Lcom/instagram/android/creation/c;->Z:Ljava/util/Observer;

    invoke-virtual {v0, v1}, Lcom/instagram/android/InstagramApplication;->b(Ljava/util/Observer;)V

    .line 386
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/c;)Landroid/widget/ListView;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    return-object v0
.end method

.method private a()V
    .locals 1

    .prologue
    .line 226
    iget-object v0, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    if-nez v0, :cond_0

    .line 227
    const-string v0, "NearbyVenuesFragment.VENUE_CLEARED"

    invoke-static {v0}, Lcom/instagram/n/d;->a(Ljava/lang/String;)Z

    .line 229
    :cond_0
    return-void
.end method

.method private a(Landroid/location/Location;)V
    .locals 1
    .parameter

    .prologue
    .line 394
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->Z()V

    .line 395
    iget-object v0, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    invoke-virtual {v0, p1}, Lcom/instagram/android/a/f;->a(Landroid/location/Location;)V

    .line 396
    iget-object v0, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/creation/c;->a(Landroid/location/Location;Ljava/lang/String;)V

    .line 397
    return-void
.end method

.method private a(Landroid/location/Location;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 349
    iget-object v0, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/widget/refresh/RefreshButton;->setDisplayedChild(I)V

    .line 351
    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v1

    const-class v2, Lcom/instagram/android/foursquare/NearbyVenuesService;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 352
    const-string v1, "location"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 353
    const-string v1, "searchString"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 355
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/support/v4/app/j;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 356
    return-void
.end method

.method public static a(Landroid/support/v4/app/r;Ljava/lang/String;Landroid/location/Location;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 139
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 140
    const-string v1, "searchString"

    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 141
    if-eqz p2, :cond_0

    .line 142
    const-string v1, "INTENT_EXTRA_PHOTO_LOCATION"

    invoke-virtual {v0, v1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 148
    :cond_0
    new-instance v1, Lcom/instagram/e/b/a/a;

    invoke-direct {v1, p0}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v2, Lcom/instagram/android/creation/c;

    invoke-direct {v2}, Lcom/instagram/android/creation/c;-><init>()V

    invoke-virtual {v1, v2, v0}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    move-result-object v1

    if-nez p1, :cond_1

    const-string v0, "NearbyVenuesFragment"

    :goto_0
    invoke-virtual {v1, v0}, Lcom/instagram/e/b/a/a;->f(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 152
    return-void

    .line 148
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private a(Landroid/view/LayoutInflater;)V
    .locals 3
    .parameter

    .prologue
    .line 308
    sget v0, Lcom/facebook/ax;->row_search_venue_edit:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 310
    sget v0, Lcom/facebook/aw;->row_search_edit_text:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    iput-object v0, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    .line 311
    iget-object v0, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    new-instance v2, Lcom/instagram/android/creation/j;

    invoke-direct {v2, p0}, Lcom/instagram/android/creation/j;-><init>(Lcom/instagram/android/creation/c;)V

    invoke-virtual {v0, v2}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setOnFilterTextListener(Lcom/instagram/ui/widget/searchedittext/b;)V

    .line 326
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-interface {v0, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 327
    iget-object v0, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 328
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/c;Landroid/content/Intent;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 43
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/c;->b(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/c;Landroid/location/Location;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 43
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/c;->a(Landroid/location/Location;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/c;Landroid/location/Location;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 43
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/creation/c;->a(Landroid/location/Location;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/c;Lcom/instagram/venue/model/Venue;I)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 43
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/creation/c;->a(Lcom/instagram/venue/model/Venue;I)V

    return-void
.end method

.method private a(Lcom/instagram/venue/model/Venue;I)V
    .locals 9
    .parameter
    .parameter

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 82
    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->e()Ljava/lang/String;

    move-result-object v0

    const-string v1, "foursquare"

    if-eq v0, v1, :cond_1

    .line 102
    :cond_0
    :goto_0
    return-void

    .line 85
    :cond_1
    new-instance v0, Lcom/instagram/b/b;

    const-string v1, "foursquare_venue_select"

    invoke-direct {v0, v1, p0}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    .line 89
    iget-object v1, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    invoke-virtual {v1}, Lcom/instagram/android/a/f;->b()Landroid/location/Location;

    move-result-object v1

    .line 90
    if-eqz v1, :cond_0

    .line 93
    const-string v2, "lat"

    const-string v3, "%.8f"

    new-array v4, v8, [Ljava/lang/Object;

    invoke-virtual {v1}, Landroid/location/Location;->getLatitude()D

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v5

    aput-object v5, v4, v7

    invoke-static {v3, v4}, Lcom/facebook/c/i/c;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    .line 94
    const-string v2, "lng"

    const-string v3, "%.8f"

    new-array v4, v8, [Ljava/lang/Object;

    invoke-virtual {v1}, Landroid/location/Location;->getLongitude()D

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    aput-object v1, v4, v7

    invoke-static {v3, v4}, Lcom/facebook/c/i/c;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    .line 95
    iget-object v1, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    if-eqz v1, :cond_2

    .line 96
    const-string v1, "query"

    iget-object v2, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    .line 98
    :cond_2
    const-string v1, "index"

    invoke-virtual {v0, v1, p2}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    .line 99
    const-string v1, "place_name"

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    .line 100
    const-string v1, "place_id"

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    .line 101
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    goto :goto_0
.end method

.method private aa()V
    .locals 2

    .prologue
    .line 389
    iget-object v0, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/widget/refresh/RefreshButton;->setDisplayedChild(I)V

    .line 390
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/InstagramApplication;

    iget-object v1, p0, Lcom/instagram/android/creation/c;->Z:Ljava/util/Observer;

    invoke-virtual {v0, v1}, Lcom/instagram/android/InstagramApplication;->a(Ljava/util/Observer;)Lcom/instagram/android/m/a;

    .line 391
    return-void
.end method

.method private ab()V
    .locals 2

    .prologue
    .line 400
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 401
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->v()Landroid/view/View;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 404
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 406
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/creation/c;)Lcom/instagram/android/a/f;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    return-object v0
.end method

.method private b(Landroid/content/Intent;)V
    .locals 3
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 359
    iget-object v1, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    if-eqz v1, :cond_0

    .line 361
    iget-object v1, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    invoke-virtual {v1, v0}, Lcom/instagram/ui/widget/refresh/RefreshButton;->setDisplayedChild(I)V

    .line 364
    :cond_0
    const-string v1, "requestId"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 365
    const-string v1, "requestId"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/instagram/android/creation/c;->g:Ljava/lang/String;

    .line 368
    :cond_1
    const-string v1, "venues"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 369
    const-string v1, "venues"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v1

    .line 372
    iget-object v2, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    invoke-virtual {v2, v1}, Lcom/instagram/android/a/f;->a(Ljava/util/List;)V

    .line 373
    iget-object v1, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    invoke-virtual {v1}, Lcom/instagram/android/a/f;->notifyDataSetChanged()V

    .line 376
    :cond_2
    iget-object v1, p0, Lcom/instagram/android/creation/c;->i:Landroid/view/View;

    const-string v2, "isFoursquareLocation"

    invoke-virtual {p1, v2, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_3

    :goto_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 379
    return-void

    .line 376
    :cond_3
    const/16 v0, 0x8

    goto :goto_0
.end method

.method static synthetic c(Lcom/instagram/android/creation/c;)Lcom/instagram/ui/widget/searchedittext/SearchEditText;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/creation/c;)Landroid/location/Location;
    .locals 1
    .parameter

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->Y()Landroid/location/Location;

    move-result-object v0

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/creation/c;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/instagram/android/creation/c;->g:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/android/creation/c;)V
    .locals 0
    .parameter

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->a()V

    return-void
.end method

.method static synthetic g(Lcom/instagram/android/creation/c;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic h(Lcom/instagram/android/creation/c;)V
    .locals 0
    .parameter

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->aa()V

    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 158
    sget v0, Lcom/facebook/ax;->activity_nearby_venues:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 160
    const v0, 0x102000a

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    .line 161
    iget-object v0, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/instagram/android/creation/c;->aa:Landroid/widget/AdapterView$OnItemClickListener;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 163
    sget v0, Lcom/facebook/ax;->row_powered_by_foursquare:I

    iget-object v2, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    const/4 v3, 0x0

    invoke-virtual {p1, v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/c;->i:Landroid/view/View;

    .line 164
    iget-object v0, p0, Lcom/instagram/android/creation/c;->i:Landroid/view/View;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 165
    iget-object v0, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/instagram/android/creation/c;->i:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 167
    iget-object v0, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->l()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/facebook/at;->people_tagging_cell_background_default:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setBackgroundColor(I)V

    .line 171
    iget-object v0, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    if-nez v0, :cond_1

    .line 172
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/c;->a(Landroid/view/LayoutInflater;)V

    .line 179
    :goto_0
    sget v0, Lcom/facebook/aw;->action_bar_button_back:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/creation/f;

    invoke-direct {v2, p0}, Lcom/instagram/android/creation/f;-><init>(Lcom/instagram/android/creation/c;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 189
    sget v0, Lcom/facebook/aw;->action_bar_button_refresh:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/widget/refresh/RefreshButton;

    iput-object v0, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    .line 190
    iget-object v0, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    new-instance v2, Lcom/instagram/android/creation/g;

    invoke-direct {v2, p0}, Lcom/instagram/android/creation/g;-><init>(Lcom/instagram/android/creation/c;)V

    invoke-virtual {v0, v2}, Lcom/instagram/ui/widget/refresh/RefreshButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 203
    iget-object v0, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 205
    if-eqz p3, :cond_0

    iget-object v0, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    if-eqz v0, :cond_0

    .line 206
    const-string v0, "currentSearch"

    invoke-virtual {p3, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 207
    iget-object v0, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    const-string v2, "currentSearch"

    invoke-virtual {p3, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setText(Ljava/lang/CharSequence;)V

    .line 212
    :cond_0
    new-instance v0, Lcom/instagram/android/creation/h;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/h;-><init>(Lcom/instagram/android/creation/c;)V

    invoke-virtual {v1, v0}, Landroid/view/View;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    .line 222
    return-object v1

    .line 175
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "\u201c"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, "\u201d"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 176
    sget v0, Lcom/facebook/aw;->action_bar_textview_title:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    .line 247
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 248
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "searchString"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    .line 250
    new-instance v0, Lcom/facebook/b/a/k;

    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    .line 252
    new-instance v1, Lcom/instagram/android/a/f;

    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/instagram/android/a/f;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    .line 254
    invoke-virtual {v0}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "com.instagram.android.creation.NearbyVenuesFragment.venuesFetched"

    new-instance v2, Lcom/instagram/android/creation/i;

    invoke-direct {v2, p0}, Lcom/instagram/android/creation/i;-><init>(Lcom/instagram/android/creation/c;)V

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/c;->h:Lcom/facebook/b/a/j;

    .line 263
    iget-object v0, p0, Lcom/instagram/android/creation/c;->h:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->b()V

    .line 264
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 410
    const-string v0, "nearby_venues"

    return-object v0
.end method

.method public e(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 275
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->e(Landroid/os/Bundle;)V

    .line 277
    iget-object v0, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    if-eqz v0, :cond_0

    .line 278
    const-string v0, "currentSearch"

    iget-object v1, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v1}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->getSearchString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 280
    :cond_0
    return-void
.end method

.method public e_()V
    .locals 2

    .prologue
    .line 284
    invoke-super {p0}, Lcom/instagram/e/b/b;->e_()V

    .line 286
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->X()Landroid/location/Location;

    move-result-object v1

    .line 288
    invoke-virtual {p0}, Lcom/instagram/android/creation/c;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/InstagramApplication;

    .line 291
    if-eqz v1, :cond_0

    invoke-virtual {v0, v1}, Lcom/instagram/android/InstagramApplication;->a(Landroid/location/Location;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 292
    iget-object v0, p0, Lcom/instagram/android/creation/c;->c:Lcom/instagram/android/a/f;

    invoke-virtual {v0, v1}, Lcom/instagram/android/a/f;->a(Landroid/location/Location;)V

    .line 297
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    invoke-direct {p0, v1, v0}, Lcom/instagram/android/creation/c;->a(Landroid/location/Location;Ljava/lang/String;)V

    .line 298
    return-void

    .line 294
    :cond_0
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->aa()V

    goto :goto_0
.end method

.method public f_()V
    .locals 0

    .prologue
    .line 302
    invoke-super {p0}, Lcom/instagram/e/b/b;->f_()V

    .line 303
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->Z()V

    .line 304
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->ab()V

    .line 305
    return-void
.end method

.method public g_()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 233
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 236
    iget-object v0, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    if-eqz v0, :cond_0

    .line 237
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 239
    :cond_0
    iput-object v2, p0, Lcom/instagram/android/creation/c;->e:Landroid/widget/ListView;

    .line 240
    iput-object v2, p0, Lcom/instagram/android/creation/c;->b:Ljava/lang/String;

    .line 241
    iput-object v2, p0, Lcom/instagram/android/creation/c;->d:Lcom/instagram/ui/widget/refresh/RefreshButton;

    .line 242
    iput-object v2, p0, Lcom/instagram/android/creation/c;->f:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    .line 243
    return-void
.end method

.method public y()V
    .locals 1

    .prologue
    .line 268
    invoke-super {p0}, Lcom/instagram/e/b/b;->y()V

    .line 269
    iget-object v0, p0, Lcom/instagram/android/creation/c;->h:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->c()V

    .line 270
    invoke-direct {p0}, Lcom/instagram/android/creation/c;->Z()V

    .line 271
    return-void
.end method
